home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / VideoToolbox 96.06.15 / Pre-compiled headers / VideoToolboxMATLAB.c < prev   
Text File  |  1995-08-15  |  2KB  |  53 lines

  1. /*
  2. VideoToolboxMATLAB.c
  3.  
  4. NOTE: you must have the file "cmex.h" in order to pre-compile this file.
  5. That file is distributed by MathWorks as part of MATLAB.
  6.  
  7. Use this file to ask THINK C to precompile the VideoToolbox.h header with the
  8. MATLAB option enabled to create "VideoToolboxMATLAB.pre". (To create plain old
  9. VideoToolbox.pre, use VideoToolbox.c instead of this file.) Enabling the MATLAB
  10. option is only useful if you're creating MATLAB code resources, i.e. subroutines
  11. for the MATLAB program.
  12.  
  13. The MATLAB-specific stuff is available from David Brainard:
  14. ftp://lifesci.lscf.ucsb.edu/pub/mac/brainard/UCSBToolboxes.sea.hqx.
  15.  
  16. INSTRUCTIONS:
  17. While you have this file open, select Precompile from THINK C’s Source menu.
  18. Save the result as “VideoToolboxMATLAB.pre” in the VideoToolboxSources folder or in
  19. your project's folder (or any subfolder within it). For each suitable project,
  20. type the line
  21.  
  22. #include "VideoToolboxMATLAB.pre"
  23.  
  24. into the Edit:Options:THINK C:Prefix window. 
  25.  
  26. WARNINGS:
  27. VideoToolboxMATLAB.pre is only appropriate for THINK C projects that are used to
  28. build external code resources, i.e. "MEX" subroutines, for MATLAB. No one has
  29. yet tried using Metrowerks CodeWarrior C to build MEX stuff. It probably will
  30. take quite a bit of tweaking before it works correctly.
  31.  
  32. Precompilation ignores the contents of the THINK C Prefix window.
  33.  
  34. Unfortunately THINK C doesn't check whether a precompiled header is out of date.
  35. If you update any of the THINK C, Standard C, or VideoToolbox.h headers, then you
  36. should recreate the precompiled header. Also, the precompiled header will
  37. reflect the compiler and language settings in effect at the time of
  38. precompilation (e.g. size of int and double), so if you have different projects
  39. with different settings then you may need various versions of the precompiled
  40. header. I don’t know which compiler settings matter; the THINK C manual doesn’t
  41. say. If in doubt, recompile the header.
  42.  
  43. You can add this file to your project. It won't generate any code or affect your
  44. project in any way. It merely keeps this file handy.
  45.  
  46. HISTORY:
  47. 9/15/93    dgp    Wrote it, based on VideoToolbox.c.
  48. */
  49. #ifndef MATLAB
  50.     #define MATLAB 1
  51. #endif
  52. #include "VideoToolbox.h"
  53.